<template>
	<view>
		<u-navbar title="店铺订单" :placeholder="true">
			<view class="u-nav-slot" slot="right">
				<view class="nav-right">
					<image src="https://m.lqvvvv.com/assets/static/my/service.png" mode=""></image>
					<view>联系客服</view>
				</view>
			</view>
		</u-navbar>
		<u-tabs :list="list" @click="click" :itemStyle="itemStyle"
			lineColor="linear-gradient( 90deg, #5755F2 0%, #D83EFF 100%)" lineWidth="30"
			:activeStyle="activeStyle"></u-tabs>
		<view class="order">
			<view class="order-item">
				<view class="order-num">
					订单编号：00000001
				</view>
				<view class="order-info">
					<image src="https://m.lqvvvv.com/assets/static/logo.png" mode=""></image>
					<view class="info-right">
						<view class="right-left">
							<view class="info-name">
								<view>
									XXXXXXXXXXX
								</view>
								<view class="info-num">
									x1
								</view>
							</view>
							<view class="time">
								时间：2024-7-22 17:31:28
							</view>
						</view>
						<view class="price">
							￥218.00
						</view>
					</view>
				</view>
				<view class="payment">
					<view class="wait-pay">
						<image src="https://m.lqvvvv.com/assets/static/my/payment.png" mode=""></image>
						<view>
							待付款
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					name: '全部',
				}, {
					name: '待付款',
				}, {
					name: '进行中'
				}, {
					name: '待评价'
				}, {
					name: '已取消'
				}],
				itemStyle: {
					backgroundColor: '#fff',
					width: "20%",
					height: '100rpx'
				},
				activeStyle: {
					fontSize: '28rpx',
					color: '#2D2D2D',
					fontWeight: 'bold'
				}
			}
		},
		methods: {
			click(item) {
				console.log('item', item);
			}
		}
	}
</script>

<style>
	page {
		background-color: #F7F8FC;
	}
</style>
<style lang="scss" scoped>
	.nav-right {
		background-color: #E4E3FF;
		border-radius: 30rpx;
		padding: 5rpx 15rpx;
		display: flex;
		align-items: center;
		font-size: 24rpx;
		color: #5755F2;
		font-weight: 600;

		image {
			width: 30rpx;
			height: 30rpx;
			border-radius: 50%;
			margin-right: 10rpx;
		}
	}

	.order {
		padding: 30rpx;

		.order-item {
			background-color: #fff;
			border-radius: 30rpx;
			padding: 30rpx;
			margin-bottom: 30rpx;

			.order-num {
				color: #2D2D2D;
				font-size: 32rpx;
				font-weight: bold;
				padding-bottom: 30rpx;
				border-bottom: 1rpx solid #EEEEFF;
			}

			.order-info {
				display: flex;
				align-items: center;
				margin-top: 30rpx;

				image {
					width: 115rpx;
					height: 115rpx;
				}

				.info-right {
					width: 78%;
					display: flex;
					justify-content: space-between;
					margin-left: 20rpx;

					.right-left {
						.info-name {
							display: flex;
							font-size: 28rpx;
							color: #2D2D2D;
							font-weight: bold;

							.info-num {
								font-size: 24rpx;
								color: #B0B0B0;
								margin-left: 30rpx;
								font-weight: normal;
							}
						}

						.time {
							margin-top: 30rpx;
							font-size: 24rpx;
							color: #9E9BA4;
						}
					}

					.price {
						font-weight: bold;
					}
				}
			}

			.payment {
				display: flex;
				justify-content: space-between;
				margin-top: 30rpx;
				font-size: 24rpx;

				.wait-pay {
					display: flex;
					align-items: center;
					color: #9E9BA4;

					image {
						width: 40rpx;
						height: 40rpx;
						margin-right: 10rpx;
					}
				}
			}
		}
	}
</style>